﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="journallsit.aspx.cs" Inherits="UI.system.page.journal.journallsit" %>
<%@ Import Namespace="Model" %>
<%@ Import Namespace="DAL" %>
<%@ Import Namespace="Common" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <script src="/js/jquery.min.js"></script>
    <script src="/js/common.js"></script>
    <script src="/js/md5.js"></script>
    <script src="/js/swfupload.js"></script>
    <script src="/system/js/admin.js"></script>
    <script src="/system/layui/layui.js"></script>
    <link rel="stylesheet" href="/system/layui/css/layui.css">
    <link rel="stylesheet" href="/system/css/iframe.css">
    <style>
        td img{border-radius:20px; width:40px; height:40px; float:left; margin-left:5px;}
    </style>
</head>
<body>
    
    <form id="form1" runat="server">
    <div class="layer-toolbar layui-form">
        <div class="layer-toolbar-left">
           <%-- <%=MenuDAL.Power("Save") %>--%>
        </div>
        <div class="layer-toolbar-right">
            <%--<input id="begindate" type="text" name="title" placeholder="开始时间" autocomplete="off" class="layui-input" value="" style="width:100px;"><div class="texts">-</div>
            <input id="enddate" type="text" name="title" placeholder="结束时间" autocomplete="off" class="layui-input" value="" style="width:100px;">
            <input id="keyword" type="text" name="title" placeholder="用户名、姓名" autocomplete="off" class="layui-input" value="" style="width:150px;" onkeyup='CRM.Enter("#search")'>
            <a id="search" class="layui-btn layui-btn-small layui-btn-normal" onclick="Search()">搜索</a>--%>
            <a class="layui-btn layui-btn-small" onclick="Search()">刷新</a>
        </div>
    </div>
    <div id="iframe" class="layer-iframe">
    <table class="layui-table" lay-data="{id:'mytable', page:true, loading:true, height:'full-90'}">
      <thead>
        <tr>
          <th lay-data="{width:200,field:'UserName'}">账号</th>
          <th lay-data="{width:200,field:'IP'}">IP地址</th>
          <th lay-data="{width:200,field:'CName'}">电脑名</th>
          <th lay-data="{width:160,field:'CreateDate'}">登录时间</th>          
        </tr>
      </thead>
    </table>
    </div>
    </form>
    <script>
        layui.use(["form", "table", "laydate"], function () {
            var $ = layui.jquery, form = layui.form, laydate = layui.laydate;
            table = layui.table;
            laydate.render({
                elem: '#begindate'
            });
            laydate.render({
                elem: '#enddate'
            });
            Init_Pager();
        });

        function Init_Pager(pageindex) {
            var data = {};
            data.act = "Find_Journal";
            data.pageindex = pageindex;
            data.parentid = $(".layui-table").attr("parentid");
            data.begindate = $("#begindate").val();
            data.enddate = $("#enddate").val();
            data.keyword = $("#keyword").val();
            data.sign = GetSign(data.act);
            table.reload('mytable', {
                url: '/tools/Admin.ashx',
                loading: true,
                where: data
            });
        };


</script>
</body>
</html>
